package br.com.mmm.javacenter.framework.view.taglib.helper;

import java.io.IOException;

import javax.servlet.jsp.JspContext;
import javax.servlet.jsp.tagext.JspFragment;

import br.com.mmm.autocenter.fornecedores.entity.Rg;
import br.com.mmm.javacenter.framework.annotations.RenderComponent;

@RenderComponent({
	Rg.class
})
public class Button extends Input{
	private String controller;
	private String action;
	
	public Button() {
		
	}
	public Button(JspContext context, JspFragment fragment) {
		super(context, fragment);
	}

	public boolean beforeInput() throws IOException {
		writer.write("<table class='tableButton' >");
		writer.write("<tr>");
		writer.write("<td>");
		writer.write("</td>");
		writer.write("<td>");
		writer.write(getLabel());
		writer.write("</td>");
		writer.write("<td>");
		writer.write("</td>");
		writer.write("</table>");
		return false;
	}
	public String getController() {
		return controller;
	}
	public void setController(String controller) {
		this.controller = controller;
	}
	public String getAction() {
		return action;
	}
	public void setAction(String action) {
		this.action = action;
	}
}
